package org.zsl.entity;

import org.springframework.stereotype.Component;

/**
 * 把一个类理解成一个对象
 *     （解构）
 *     属性集合
 *          name  value
 *          gender  value
 *     方法集合
 *          getName
 * */
@Component("customer1")
/**
 *  <bean class=  id =>  </bean>
 * */
public class Customer {
    private String name;
    private String gender;

    private CustomerRecord record;






    public  Customer(){
        System.out.println("new customer");
    }

    public Customer(String name,String gender) {
        this.name = name;
        this.gender=gender;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public CustomerRecord getRecord() {
        return record;
    }

    public void setRecord(CustomerRecord record) {
        this.record = record;
    }
}
